package cn.yy.pojo;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * AccountInChart entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "account_in_chart", catalog = "phoneerp")
public class AccountInChart implements java.io.Serializable {

	// Fields

	private Integer accountId;
	private String accountName;
	private Double originCount;
	private Double income;
	private Double expense;
	private Double finalCount;
	private Integer yearId;
	private Integer monthId;

	// Constructors

	/** default constructor */
	public AccountInChart() {
	}

	/** full constructor */
	public AccountInChart(Integer accountId, String accountName,
			Double originCount, Double income, Double expense,
			Double finalCount, Integer yearId, Integer monthId) {
		this.accountId = accountId;
		this.accountName = accountName;
		this.originCount = originCount;
		this.income = income;
		this.expense = expense;
		this.finalCount = finalCount;
		this.yearId = yearId;
		this.monthId = monthId;
	}

	// Property accessors
	@Id
	@Column(name = "accountId", unique = true, nullable = false)
	public Integer getAccountId() {
		return this.accountId;
	}

	public void setAccountId(Integer accountId) {
		this.accountId = accountId;
	}

	@Column(name = "accountName", nullable = false, length = 20)
	public String getAccountName() {
		return this.accountName;
	}

	public void setAccountName(String accountName) {
		this.accountName = accountName;
	}

	@Column(name = "originCount", nullable = false, precision = 22, scale = 0)
	public Double getOriginCount() {
		return this.originCount;
	}

	public void setOriginCount(Double originCount) {
		this.originCount = originCount;
	}

	@Column(name = "income", nullable = false, precision = 22, scale = 0)
	public Double getIncome() {
		return this.income;
	}

	public void setIncome(Double income) {
		this.income = income;
	}

	@Column(name = "expense", nullable = false, precision = 22, scale = 0)
	public Double getExpense() {
		return this.expense;
	}

	public void setExpense(Double expense) {
		this.expense = expense;
	}

	@Column(name = "finalCount", nullable = false, precision = 22, scale = 0)
	public Double getFinalCount() {
		return this.finalCount;
	}

	public void setFinalCount(Double finalCount) {
		this.finalCount = finalCount;
	}

	@Column(name = "yearId", nullable = false)
	public Integer getYearId() {
		return this.yearId;
	}

	public void setYearId(Integer yearId) {
		this.yearId = yearId;
	}

	@Column(name = "monthId", nullable = false)
	public Integer getMonthId() {
		return this.monthId;
	}

	public void setMonthId(Integer monthId) {
		this.monthId = monthId;
	}

}